package messaging;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
 * Encapsulates the add Nodes Message.
 * @author Team 4
 * @version 05-20-2013
 *
 */
@SuppressWarnings("serial")
public class AddNodeMessage implements Serializable
{
  /**
   * Stores the actual and virtual node list to be added.
   */
  private final ArrayList<Integer> my_add_nodes_list;
  /**
   * Stores the data of each node.
   */
  private ArrayList<Map<String, Serializable>> my_node_data;
  
  /**
   * Instantiates the actual and virtual node list to be added.
   * @param the_add_nodes_list stores the nodes to be added list
   * @param the_message_channels stores list of message channels of each node
   * @param the_node_data stores the list of data present in each node
   */
  public AddNodeMessage(final ArrayList<Integer> the_add_nodes_list,
                           final ArrayList<Map<String, Serializable>> the_node_data)
  {
    my_add_nodes_list = the_add_nodes_list;
    my_node_data = the_node_data;
  }
  /**
   * Return the remove node's list.
   * @return the nodes to be removed
   */
  public ArrayList<Integer> getAddNodesList()
  {
    return my_add_nodes_list;
  }
  public ArrayList<Map<String, Serializable>> getMy_node_data()
  {
    return my_node_data;
  }
  public void setMyNodeData(ArrayList<Map<String, Serializable>> allNodeData)
  {
    this.my_node_data = allNodeData;
  }
  /**
   * Returns the data present in each node.
   * @return an arraylist of each node's data
   */
  public ArrayList<Map<String, Serializable>> getEachNodeData()
  {
    return my_node_data;
  }
}
